package com.zkthink.ceres.member.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.zkthink.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Map;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import com.zkthink.base.entity.SuperEntity;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 会员标签
 * 
 * </p>
 *
 * @author kellen
 * @since 2020-07-12
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "MemberTagUpdateDTO", description = "会员标签 ")
public class MemberTagUpdateDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @NotNull(message = "id不能为空", groups = SuperEntity.Update.class)
    private Long id;

    /**
     * 标签名称
     */
    @ApiModelProperty(value = "标签名称")
    @NotEmpty(message = "标签名称不能为空")
    @Length(max = 300, message = "标签名称长度不能超过300")
    private String name;
    /**
     * 1手动标签 2自动标签
     */
    @ApiModelProperty(value = "1手动标签 2自动标签")
    @NotNull(message = "1手动标签 2自动标签不能为空")
    private Integer type;
    /**
     * 满足条件 1满足任意一个 2满足所有
     */
    @ApiModelProperty(value = "满足条件 1满足任意一个 2满足所有")
    @NotNull(message = "满足条件 1满足任意一个 2满足所有不能为空")
    private Integer meetCondition;
    /**
     * 具体的条件配置
     */
    @ApiModelProperty(value = "具体的条件配置")
    private Map<String,Object> config;
}
